﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OINS
{
    public partial class listActiveHostWindow : Form
    {
        public listActiveHostWindow()
        {
            InitializeComponent();
        }

        public void writeHosts(List<Host> active)
        {

            textBox1.ResetText();
            foreach (Host host in active)
            {
                textBox1.TabIndex = 1;
                textBox1.AppendText ( host.name+"\t");
                textBox1.TabIndex = 2;
                textBox1.AppendText( host.IP+"\n");
            }

        }

        private void Form4_Load(object sender, EventArgs e)
        {

        }
    }
}
